package com.uw.scenic.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 *
 * 新的响应对象，新项目的开发，将使用此响应对象
 * 通用响应对象定义
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResponse<T> implements Serializable {

    private Integer code;
    private String message;
    private T data;
    private long timestamp = System.currentTimeMillis();

    public CommonResponse(Integer code,String message){
        this.code=code;
        this.message=message;
    }
}
